Conditions | 1 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
16 | |||
17 | /** |
||
18 | * Set up mapping classnames function |
||
19 | * @example |
||
20 | * ```typescript |
||
21 | * const mapping = classNamesMap(classnames) |
||
22 | * ``` |
||
23 | */ |
||
24 | function classNamesMap< |
||
25 | Source extends CssModule, |
||
26 | >(classnames: Source){ |
||
27 | const mapper: ClassNamesMapping<Source> = (target, map) => mapping(classnames, target, map) |
||
28 | return mapper |
||
29 | } |
||
60 |